package wzh.crm.db;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.ArrayList;
import java.util.List;

import wzh.crm.vo.Vo;

/**
 * Created by wangzehao on 2016/5/26.
 */
public interface CURDDB <T extends Vo> {
    public List<T> getAll() throws Exception;

    public List<T> getMine(int myId)  throws Exception;

    public void delete(T model)  throws Exception;

    public void save(T model) throws Exception;

    public T get(int id) throws Exception;

}
